//
//  shopViewModel.m
//  测试
//
//  Created by 狮子座 on 2017/4/20.
//  Copyright © 2017年 森之源. All rights reserved.
//

#import "shopViewModel.h"

@implementation shopViewModel
- (instancetype)init
{
    self = [super init];
    if (self) {
        self.modelsProxy = [NSMutableArray array];
        
        for (int i = 0; i<8; i++) {
            shopModel *model = [shopModel new];
            model.isSel = NO;
            model.price = 100.f;//arc4random()%150;
            model.much =arc4random()%10+1;
            model.muchMAX = model.much+5;
            [self.modelsProxy addObject:model];
        }
        
    }
    return self;
}
-(NSString *)cell_IDAtIndexPath:(NSIndexPath *)indexPath
{
    return cell;
}
-(CGFloat)heightForRowAtIndexPath:(NSIndexPath *)indexPath

{
    return 100.f;
}
-(NSInteger)numberOfItemsInSection:(NSInteger)section
{
    return self.modelsProxy.count;
}
-(id)modelForIndexPath:(NSIndexPath *)indexPath
{
    return self.modelsProxy[indexPath.row];
}

@end
